using System.Collections.Generic;
using UnityEngine;

public class UseModifier:MonoBehaviour {

	[SerializeField] ModifierPreset[] modifiers;
	Projectile projectile;
	private void Awake() {
		projectile=GetComponent<Projectile>();
	}

	private void OnEnable() {
		for(int i = 0;i<modifiers.Length;i++) {
			projectile.AddModifier(modifiers[i].CreateProjectileModifier(projectile));
		}
	}

}
